package com.company.common.enums;

/**
 *
 * @date 2019/9/25 14:56
 */
public class ProjectConstants {
    /**
     * 结果码: 成功
     */
    public static final int RESULT_OK = 200;
    public static final int SERVICE_ERROR = 500;


    /** 微信接口返回 */
    public static final int WX_RESULT_OK = 0;


    public static final String RESULT_STATUS_SUCCESS = "success";
    public static final String RESULT_STATUS_FAILED = "fail";

    /** Redis group key */
    public static final String USER_SESSION_G_KEY = "UserSession";
    /**  下面2个组在redis中存储医生或销售员的ID和手机号码，后续可以考虑添加更多信息  */
    public static final String USER_DOCTOR_G_KEY = "UserDoctor";
    public static final String DOCTOR_SALESMAN_G_KEY = "DoctorSalesman";

    /** 内存自增ID限制 */
    public static final int ID_INCREASE_VALUE = 50;

    /** 集团ID */
    public static final String B_ID = "1";
    /** 默认公司ID */
    public static final String DEFAULT_COM_ID = "c1";

    /** 总公司的默认销售分成（销售提成和平台提成） **/
    public static final String COM_BENEFIT_KEY_G_KEY = "com_benefit_grp";

    /** 用户常量**/
    public static final String USER_NUM = "NUM_";
    public static final String USER_MOBILEPHONE = "MobilePhone_";
    public static final String USER_LOCK ="LOCK_";


}
